package com.txby.pf.modules.busi.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.txby.pf.modules.busi.dao.BusiVideoDao;
import com.txby.pf.modules.busi.entity.BusiVideoEntity;
import com.txby.pf.modules.busi.service.BusiVideoService;


/**
 * 视频
 * 
 */
@Service("busiVideoService")
public class BusiVideoServiceImpl implements BusiVideoService {
	@Autowired
	private BusiVideoDao busiVideoDao;
	
	@Override
	public List<BusiVideoEntity> queryList(Map<String, Object> map){
		return busiVideoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map) {
		return busiVideoDao.queryTotal(map);
	}

	@Override
	@Transactional
	public void save(BusiVideoEntity video) {
		busiVideoDao.save(video);
	}

	@Override
	@Transactional
	public void update(BusiVideoEntity video) {
		busiVideoDao.update(video);
	}

	@Override
	public void deleteBatch(Long[] videoIds) {
		busiVideoDao.deleteBatch(videoIds);
	}

	@Override
	public BusiVideoEntity queryObject(Long id) {
		return busiVideoDao.queryObject(id);
	}

}
